<!-- XMP tags added to display content in browsers -->
<XMP>
<SCRIPT LANGUAGE="JavaScript1.5">
if (HTMLElement) {
	HTMLElement.prototype.__defineGetter__("childNodeDetail", function() {
		var result = {elementNodes:0, textNodes:0}
		for (var i = 0; i < this.childNodes.length; i++) {
			switch (this.childNodes[i].nodeType) {
				case 1:
					result.elementNodes++
					break
				case 3:
					result.textNodes++
					break
			}
		}
		return result
	})
}
</SCRIPT>
</XMP>
